package com.vcg.ratpack;

import org.junit.Test;
import ratpack.func.Action;
import ratpack.handling.Chain;
import ratpack.handling.internal.ChainHandler;
import ratpack.server.RatpackServer;
import ratpack.server.RatpackServerSpec;
import ratpack.spring.internal.SpringRegistryBacking;

/**
 * Created by wuyu on 2016/9/16.
 */
public class RatpackTest {

    @Test
    public void hello() throws Exception {
        RatpackServer.start(new Action<RatpackServerSpec>() {
            @Override
            public void execute(RatpackServerSpec ratpackServerSpec) throws Exception {
                ratpackServerSpec.handlers(new Action<Chain>() {
                    @Override
                    public void execute(Chain chain) throws Exception {

                    }
                });
            }
        });
    }
}
